                                                                                                                                                                                                                                                     <%@page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>博和利报表设计器</title>
		<link href="${pageContext.request.contextPath}/ext3.0/css/ext-all.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="${pageContext.request.contextPath}/ext3.0/js/ext-base.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/ext3.0/js/ext-all.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/ext3.0/js/TabCloseMenu.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/ext3.0/js/FileUploadField.js"></script>
		<link href="${pageContext.request.contextPath}/ppdesinger/js/dragresize.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="${pageContext.request.contextPath}/ppdesinger/js/jquery-1.3.2.js"></script>	
		<script type="text/javascript" src="${pageContext.request.contextPath}/ppdesinger/js/dragresize1.js"></script>	
		<script type="text/javascript" src="${pageContext.request.contextPath}/ppdesinger/js/extendDrag.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/ppdesinger/js/PpObject.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/ppdesinger/js/PpObjectFunction.js"></script>

		<script type="text/javascript" src="${pageContext.request.contextPath}/ppdesinger/js/Pppro.js"></script>
				<script type="text/javascript" src="${pageContext.request.contextPath}/ppdesinger/js/context.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/ppdesinger/js/PpObjectCreateNode.js"></script>
	</head>
	<body>
		<div id="content"></div>
		<script>
//-------------------------屏蔽IE自带右键功能-------------------	
		
		document.oncontextmenu = function nocontextmenu() 
		{
			return false;
		};
		
		//-------------------------屏蔽Firefox自带右键功能-------------------
		
		document.onclick = function norightclick(e) 
		{
			if (!e)
				e = window.event;
			if (e.button == 2) 
			{
					e.cancelBubble = true
					e.returnValue = false;
					iffoxcandel = true;
					return false;
			}
		}
		Ext.onReady(function(){
		var dragresize = new PPdesinger({
			title:"盼盼设计器",
			width:1200,
			height:800,
			howCreateForm:{
				isNewForm:false,
				isRedisplayForm:false,
				isModifyForm:true	//true,表示进入修改页面
			},
			//linsteners:{beforeCreate:function(a,b,c){alert(a);}
			//	},
			//useFormTab:{flag:true,tabNumber:1},
			toolbar:{
				新建:true,
				保存:true,
				返回:true,
				checkbox:true,
				button:true,
				radiobox:true,
				label:true,
				textfield:true,
				numberfield:true,
				textarea:true,
				datefield:true,
				linex:true,
				liney:true,
				imag:true,
				//background:true,
				htmleditor:true
			},
			
			 menu:
				{
					插入表格:true,
					字体:true,
					颜色:true,
					字体:true,
					字形:true,
					字号:true,
					标尺线:true,
					打开本地:true,
					另存本地:true,
					预览:true
				},
				contextmenu:
				{
					删除:true,
					上对齐:true,
					下对齐:true,
					右对齐:true,
					水平平均:true,
					垂直平均:true,
					自动求和:true
				},
				formContexmenu:
				{
					全选:true,
					黏贴:true
				}
		}); 
		
		var tabxml = '<?xml version="1.0" encoding="UTF-8"?><form formwidth="794" formheight="1123"><tabItem><item i_id="cfz_label0" i_type="label" i_x="124" i_y="65" i_width="100" i_height="24" i_style="{color:\'000000\',fontSize:\'12px\', fontWeight:\'normal\',fontFamily:\'宋体\'}" i_value="新标签"/></tabItem><tabItem><item i_id="cfz_linex1" i_type="linex" i_x="276" i_y="108" i_width="200" i_style="{borderColor:\'#000\'}" i_height="1"/></tabItem></form>';

		var tabcfz = '<?xml version="1.0" encoding="UTF-8"?><form formwidth="794" formheight="1123"><tabItem><item i_id="cfz_label0" i_type="label" i_x="138" i_y="75" i_width="100" i_height="24" i_style="{color:&quot;000000&quot;,fontSize:&quot;12px&quot;, fontWeight:&quot;normal&quot;,fontFamily:&quot;宋体&quot;}" i_value="新标签"/><item i_id="cfz_label1" i_type="label" i_x="178" i_y="177" i_width="100" i_height="24" i_style="{color:&quot;000000&quot;,fontSize:&quot;12px&quot;, fontWeight:&quot;normal&quot;,fontFamily:&quot;宋体&quot;}" i_value="新标签"/></tabItem><tabItem><item i_id="cfz_linex2" i_type="linex" i_x="292" i_y="38" i_width="200" i_style="{borderColor:&quot;#000&quot;}" i_height="1"/><item i_id="cfz_linex3" i_type="linex" i_x="318" i_y="144" i_width="200" i_style="{borderColor:&quot;#000&quot;}" i_height="1"/></tabItem></form>';
		
		var xxxmmmlll = '<?xml version="1.0" encoding="UTF-8"?>'+
						'<form formwidth="794" formheight="1123">'+
						'<item i_id="linex" '+
						'i_type="linex" '+
						'i_x="0" '+
						'i_y="44" '+
						'i_width="200" '+
						'i_style="{borderColor:\''+'rgb(244,33,33)\'}"  '+
						'i_height="1" />'+
						
						'<item i_id="liney" '+
						'i_type="liney" '+
						'i_x="77" '+
						'i_y="43" '+
						'i_width="1" '+
						'i_style="{borderColor:\''+'rgb(14,233,33)\'}"  '+
						'i_height="133" />'+
						
						'<item i_id="numberfield1" '+
						'i_code = "i_code1" '+
						'i_tabseq = "3" '+
						'i_value = "343434" '+
						'i_style="{color:\'#eeff55\',fontSize:\'23px\', fontWeight:\'normal\',fontFamily:\'宋体\'}"  '+
						'i_length="20" '+
						'i_desplaystyle="方框" '+
						'i_allowblank="true" '+			//允许为空
						'i_readonly="true" '+
						'i_negative="true" '+			//是否允许小数
						'i_accuracy="2" '+				//小数位数
						'i_type="numberfield" '+
						'i_x="33" '+
						'i_y="44" '+
						'i_width="200" '+
						'i_height="33" />'+

						'<item i_id="textfield11" '+
						'i_code = "i_code2" '+
						'i_tabseq = "4" '+
						'i_value = "111" '+
						'i_style="{color:\'#22ff55\',fontSize:\'23px\', fontWeight:\'normal\',fontFamily:\'宋体\'}"  '+
						'i_length="20" '+
						'i_desplaystyle="方框" '+
						'i_allowblank="true" '+			//允许为空
						'i_readonly="true" '+
						'i_type="textfield" '+
						'i_x="122" '+
						'i_y="114" '+
						'i_width="200" '+
						'i_height="133" />'+



						'<item i_id="label11" '+
						'i_value = "adfasf" '+
						'i_style="{color:\'#22ff55\',fontSize:\'13px\', fontWeight:\'normal\',fontFamily:\'宋体\'}"  '+
						'i_type="label" '+
						'i_x="322" '+
						'i_y="114" '+
						'i_width="100" '+
						'i_height="43" />'+


						'<item i_id="adfdasfasdfljasdljflasjfalojsflj" '+
						'i_tabseq = "4" '+
						'i_value = "34544" '+
						'i_code = "232" '+
						'i_readonly="false" '+
						'i_type="htmleditor" '+
						'i_x="142" '+
						'i_y="54" '+
						'i_width="121" '+
						'i_height="121" />'+
						
						'</form>';
		dragresize.windowPanel.render("mydiv");
		//dragresize.newForm("title",1111,777,xxxmmmlll,"dfdf");
		//dragresize.newTabForm("title",1111,777,0,tabcfz,"dfdf");
		//var form = dragresize.newForm("title",1111,777,xxxmmmlll,"dfdf");
		//form.render("mydiv");
		//dragresize.createFormItemByLoad(xxxmmmlll,"df","Ext.getCmp('_newform_id')");
		
});

		
     	</script>
		<form action="${pageContext.request.contextPath}/ppdesingerInsertTable.cfz" method="post" id="newForm_">
			<input type="hidden" name="id" value="${id}"/>
			<input type="hidden" name="form_name" id="form_name"/> 
			<input type="hidden" name="form_content"  id="form_content"/> 
			<input type="hidden" name="tablename"  value="t_form"/> 
			
		</form>
		
		<div id="mydiv"></div>
	</body>
</html>
